package com.hgh.model;

import com.misakubex.Main;

import java.util.List;

public class Map {

	/**
	 * 地图高度
	 */
	public static final int HEIGHT = 26;

	/**
	 * 地图宽度
	 */
	public static final int WIDTH = 26;

	/**
	 * 地图数组
	 */
	public static volatile char[][] points=new char[HEIGHT][WIDTH];

	/**
	 * 基地的位置
	 */
	public static int[] base = {12,25};

    /**
     * 三个敌机坦克出生点的坐标
     */
	public static int[][] enemyTankBornPoint = {{1*Main.a,0},{12*Main.a,0},{24*Main.a,0}};

    //‘W’代表红色墙壁
    public static final char REDWALL = 'W';

    //‘w’代表白色墙壁
    public static final char WHITEWALL = 'w';

    public  void initMap(){

    	//第1、2排
		{
			points[0][12] = REDWALL;
        points[0][13] = WHITEWALL;
        points[1][12] = REDWALL;
        points[1][13] = WHITEWALL;

        }
        //第3，4排
        {
        points[2][1] = REDWALL;
        points[2][2] = REDWALL;
        points[2][3] = REDWALL;
        points[2][4] = REDWALL;
        points[2][5] = REDWALL;
        points[2][6] = REDWALL;
        points[2][7] = REDWALL;
        points[2][8] = REDWALL;
        points[2][9] = REDWALL;

        points[2][16] = REDWALL;
        points[2][17] = REDWALL;
        points[2][18] = REDWALL;
        points[2][19] = REDWALL;
        points[2][20] = REDWALL;
        points[2][21] = REDWALL;
        points[2][22] = REDWALL;
        points[2][23] = REDWALL;

        points[3][1] = REDWALL;
        points[3][2] = REDWALL;
        points[3][3] = REDWALL;
        points[3][4] = REDWALL;
        points[3][5] = REDWALL;
        points[3][6] = REDWALL;
        points[3][7] = REDWALL;
        points[3][8] = REDWALL;
        points[3][9] = REDWALL;

        points[3][16] = REDWALL;
        points[3][17] = REDWALL;
        points[3][18] = REDWALL;
        points[3][19] = REDWALL;
        points[3][20] = REDWALL;
        points[3][21] = REDWALL;
        points[3][22] = REDWALL;
        points[3][23] = REDWALL;
        }
        //第5，6排
        {
        points[4][12] = REDWALL;
        points[4][13] = WHITEWALL;
        points[5][12] = REDWALL;
        points[5][13] = WHITEWALL;
        }
        //第7，8排
        {
        points[6][12] = REDWALL;
        points[6][13] = WHITEWALL;
        points[7][12] = REDWALL;
        points[7][13] = WHITEWALL;
        points[6][1] = REDWALL;
        points[6][2] = REDWALL;
        points[6][3] = REDWALL;
        points[6][4] = REDWALL;
        points[6][5] = REDWALL;
        points[6][6] = REDWALL;
        points[6][7] = REDWALL;
        points[6][8] = REDWALL;
        points[6][9] = REDWALL;

        points[6][16] = REDWALL;
        points[6][17] = REDWALL;
        points[6][18] = REDWALL;
        points[6][19] = REDWALL;
        points[6][20] = REDWALL;
        points[6][21] = REDWALL;
        points[6][22] = REDWALL;
        points[6][23] = REDWALL;

        points[7][1] = REDWALL;
        points[7][2] = REDWALL;
        points[7][3] = REDWALL;
        points[7][4] = REDWALL;
        points[7][5] = REDWALL;
        points[7][6] = REDWALL;
        points[7][7] = REDWALL;
        points[7][8] = REDWALL;
        points[7][9] = REDWALL;

        points[7][16] = REDWALL;
        points[7][17] = REDWALL;
        points[7][18] = REDWALL;
        points[7][19] = REDWALL;
        points[7][20] = REDWALL;
        points[7][21] = REDWALL;
        points[7][22] = REDWALL;
        points[7][23] = REDWALL;
        }
        //第9，10排
        {}
        //11，12
        {
        points[10][1] = REDWALL;
        points[10][2] = REDWALL;
        points[10][3] = REDWALL;
        points[10][4] = REDWALL;
        points[10][5] = REDWALL;
        points[10][6] = REDWALL;
        points[10][7] = REDWALL;

        points[11][1] = REDWALL;
        points[11][2] = REDWALL;
        points[11][3] = REDWALL;
        points[11][4] = REDWALL;
        points[11][5] = REDWALL;
        points[11][6] = REDWALL;
        points[11][7] = REDWALL;


        points[10][10] = REDWALL;
        points[10][11] = REDWALL;

        points[11][10] = REDWALL;
        points[11][11] = REDWALL;

        points[10][16] = REDWALL;
        points[10][17] = REDWALL;
        points[10][18] = REDWALL;
        points[10][19] = REDWALL;
        points[10][20] = REDWALL;
        points[10][21] = REDWALL;

        points[11][16] = REDWALL;
        points[11][17] = REDWALL;
        points[11][18] = REDWALL;
        points[11][19] = REDWALL;
        points[11][20] = REDWALL;
        points[11][21] = REDWALL;

        points[11][24] = REDWALL;
        points[11][25] = REDWALL;


        }
        //第13，14排
        {
        points[12][4] = WHITEWALL;
        points[12][5] = WHITEWALL;
        points[13][4] = WHITEWALL;
        points[13][5] = WHITEWALL;

        points[12][15] = REDWALL;
        points[12][16] = REDWALL;
        points[13][15] = REDWALL;
        points[13][16] = REDWALL;

        points[12][24] = REDWALL;
        points[13][24] = REDWALL;
        }


        //第25、26排
        {
        points[24][12] = REDWALL;
        points[24][13] = WHITEWALL;
        points[25][12] = REDWALL;
        points[25][13] = WHITEWALL;

        }
        //第23，24排
        {
        points[22][1] = REDWALL;
        points[22][2] = REDWALL;
        points[22][3] = REDWALL;
        points[22][4] = REDWALL;
        points[22][5] = REDWALL;
        points[22][6] = REDWALL;
        points[22][7] = REDWALL;
        points[22][8] = REDWALL;
        points[22][9] = REDWALL;


        points[22][16] = REDWALL;
        points[22][17] = REDWALL;
        points[22][18] = REDWALL;
        points[22][19] = REDWALL;
        points[22][20] = REDWALL;
        points[22][21] = REDWALL;
        points[22][22] = REDWALL;
        points[22][23] = REDWALL;

        points[23][1] = REDWALL;
        points[23][2] = REDWALL;
        points[23][3] = REDWALL;
        points[23][4] = REDWALL;
        points[23][5] = REDWALL;
        points[23][6] = REDWALL;
        points[23][7] = REDWALL;
        points[23][8] = REDWALL;
        points[23][9] = REDWALL;

        points[23][16] = REDWALL;
        points[23][17] = REDWALL;
        points[23][18] = REDWALL;
        points[23][19] = REDWALL;
        points[23][20] = REDWALL;
        points[23][21] = REDWALL;
        points[23][22] = REDWALL;
        points[23][23] = REDWALL;
        }
        //第21，22排
        {
        points[20][12] = REDWALL;
        points[20][13] = WHITEWALL;
        points[21][12] = REDWALL;
        points[21][13] = WHITEWALL;
        }
        //第19，20排
        {
        points[18][12] = REDWALL;
        points[18][13] = WHITEWALL;
        points[19][12] = REDWALL;
        points[19][13] = WHITEWALL;
        points[18][1] = REDWALL;
        points[18][2] = REDWALL;
        points[18][3] = REDWALL;
        points[18][4] = REDWALL;
        points[18][5] = REDWALL;
        points[18][6] = REDWALL;
        points[18][7] = REDWALL;
        points[18][8] = REDWALL;
        points[18][9] = REDWALL;


        points[18][16] = REDWALL;
        points[18][17] = REDWALL;
        points[18][18] = REDWALL;
        points[18][19] = REDWALL;
        points[18][20] = REDWALL;
        points[18][21] = REDWALL;
        points[18][22] = REDWALL;
        points[18][23] = REDWALL;

        points[19][1] = REDWALL;
        points[19][2] = REDWALL;
        points[19][3] = REDWALL;
        points[19][4] = REDWALL;
        points[19][5] = REDWALL;
        points[19][6] = REDWALL;
        points[19][7] = REDWALL;
        points[19][8] = REDWALL;
        points[19][9] = REDWALL;


        points[19][16] = REDWALL;
        points[19][17] = REDWALL;
        points[19][18] = REDWALL;
        points[19][19] = REDWALL;
        points[19][20] = REDWALL;
        points[19][21] = REDWALL;
        points[19][22] = REDWALL;
        points[19][23] = REDWALL;
        }
        //第17，18排
        {}
        //15,16
        {
        points[14][1] = REDWALL;
        points[14][2] = REDWALL;
        points[14][3] = REDWALL;
        points[14][4] = REDWALL;
        points[14][5] = REDWALL;
        points[14][6] = REDWALL;
        points[14][7] = REDWALL;

        points[15][1] = REDWALL;
        points[15][2] = REDWALL;
        points[15][3] = REDWALL;
        points[15][4] = REDWALL;
        points[15][5] = REDWALL;
        points[15][6] = REDWALL;
        points[15][7] = REDWALL;


        points[14][10] = REDWALL;
        points[14][11] = REDWALL;

        points[15][10] = REDWALL;
        points[15][11] = REDWALL;


        points[14][16] = REDWALL;
        points[14][17] = REDWALL;
        points[14][18] = REDWALL;
        points[14][19] = REDWALL;
        points[14][20] = REDWALL;
        points[14][21] = REDWALL;


        points[15][16] = REDWALL;
        points[15][17] = REDWALL;
        points[15][18] = REDWALL;
        points[15][19] = REDWALL;
        points[15][20] = REDWALL;
        points[15][21] = REDWALL;

        points[13][24] = REDWALL;
        points[13][25] = REDWALL;


        }
        }
        }
